package ooptest;

public class Student {
    private String name;
    private int id;
    private String banji;
    private String gender;
    private int age;
    private String character;

    public void setName(String name) {
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setBanji(String banji) {
        this.banji = banji;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setCharacter(String character) {
        this.character = character;
    }
    public void say(){
        System.out.println("我是"+name+"，性别"+gender+"，学号"+id+"，来自"+banji+"，今年"+age+",性格"+character);
    }

    public static void main(String[] args) {
        Student stu1=new Student();
        stu1.setName("张三");
        stu1.setAge(18);
        stu1.setBanji("地信");
        stu1.setId(1001);
        stu1.setGender("男");
        stu1.setCharacter("活泼开朗");
        stu1.say();

        Student stu2=new Student();
        stu2.setName("李四");
        stu2.setAge(18);
        stu2.setBanji("地信");
        stu2.setId(1002);
        stu2.setGender("男");
        stu2.setCharacter("慷慨大方");
        stu2.say();

        Student stu3=new Student();
        stu3.setName("赵五");
        stu3.setAge(18);
        stu3.setBanji("地信");
        stu3.setId(1003);
        stu3.setGender("男");
        stu3.setCharacter("自信乐观");
        stu3.say();

    }
}
